package com.gtq.uhome.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gtq.uhome.pojo.Consignee;
import com.gtq.uhome.pojo.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author ylhy
 * @Describe
 * @create 2020-07-30 20:13
 */
@Data
@ApiModel
public class UserInfo {

    @ApiModelProperty(value = "用户id",notes = "员工id来自Staff,用于删除,前端不必在页面显示,但是必须要传递",required = true)
    private Integer userId;

    @ApiModelProperty(value = "员工姓名")
    private String userName;

    @ApiModelProperty(value = "电话")
    private String userPhoneNumber;

    @ApiModelProperty(value = "最后活跃时间",notes = "来自日志中查询出来")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Timestamp lastActiveTime;

    @ApiModelProperty(value = "配送订单数",notes = "来自Delivery表")
    private Integer deliveryOrderNumber;

    @ApiModelProperty(value = "站点名称")
    private String siteName;

    @ApiModelProperty(value = "站点id",notes = "前端不必显示,但是必须传递,便于删除",required = true)
    private Integer siteId;

    @ApiModelProperty(value =  "状态[冻结/正常]")
    private String freezeStatus;

    @ApiModelProperty(value =  "收货人地址")
    private List<Consignee> consigneeList;

    @ApiModelProperty(value =  "用戶订单")
    private List<UserOrderInfor> userOrderInforList;

}




